﻿using SXFramWork.Core;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace SXFramWork.Service
{
    public interface ICodeGenerratorService
    {
        /// <summary>
        /// 获取数据库所有tables
        /// </summary>
        /// <returns></returns>
        Task<IApiResult> GetTables();
        /// <summary>
        /// 查询表的所有列
        /// </summary>
        /// <param name="tableName"></param>
        /// <returns></returns>
        Task<IApiResult> GetTableColumn(string tableName);

        Task<IApiResult<string>> BuildCode(string tableNames);
    }
}
